//
// Created by PC on 2022/10/31.
//

#include <iostream>

using namespace std;

void fun_point(int *, int *);
void fun_ref(int &ja,int &jb);

int main()
{
    int a = 1, b = 2;
    int *pa = &a, *pb = &b;
    int &ra = a, &rb = b;
    fun_point(&a, &b);
    fun_ref(a,b);
}

void fun_point(int *ia, int *ib)
{
    printf("*ia:%d, *ib:%d\n", *ia,*ib);
}

void fun_ref(int &ja,int &jb)
{
    printf("ja:%d, jb:%d",ja,jb);
}